package com.plugin.appinit

import org.gradle.api.Plugin
import org.gradle.api.Project;

class InitAppPlugin implements  Plugin<Project> {

  @Override
  void apply(Project project) {
    println("> BuildSrc Plugin ...")
    if(project.plugins.hasPlugin("com.android.application")){
      println ">> is application..."
      project.android.registerTransform(new InitiatorTransform(project))
    }
  }
}
